@import './var.less';
.scrollbar-y{
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) rgba(0,0,0,0.1);
  scrollbar-gutter: stable;
  &:hover{
    overflow-y: overlay;
  }
  &::-webkit-scrollbar {/*滚动条整体样式*/
    width:4px;/*高宽分别对应横竖滚动条的尺寸*/
    height:15px;
  }
  &::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius:5px;
    -webkit-box-shadow: inset rgba(0,0,0,0);
    background: fade(@primaryColor, 30%);  /*设置滚动条颜色*/
  }
  &::-webkit-scrollbar-track { /*滚动条里面轨道*/
    -webkit-box-shadow: inset rgba(0, 0, 0, 0);
    border-radius: 0;
    background: fade(@primaryColor, 10%);
  }
  &::-webkit-scrollbar-corner {
    background: fade(@primaryColor, 10%);
  }
}
.scrollbar-x{
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) rgba(0,0,0,0.1);
  &:hover{
    overflow-x: auto;
  }
  &::-webkit-scrollbar {/*滚动条整体样式*/
    width:4px;/*高宽分别对应横竖滚动条的尺寸*/
    height:15px;
  }
  &::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius:5px;
    -webkit-box-shadow: inset rgba(0,0,0,0.2);
    background: fade(@primaryColor, 30%);  /*设置滚动条颜色*/
  }
  &::-webkit-scrollbar-track { /*滚动条里面轨道*/
    -webkit-box-shadow: inset rgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: fade(@primaryColor, 10%);
  }
  &::-webkit-scrollbar-corner {
    background: fade(@primaryColor, 10%);
  }
}
.tree-content,.ant-table-body,.charts-content,.menu-list{
  .scrollbar-y();
}
.relative{
  position: relative;
}
.absolute{
  position: absolute;
}
.flex{
  display: flex;
}
.justify-end{
  justify-content: flex-end;
}
.justify-around{
  justify-content: space-around;
}
.justify-between{
  justify-content: space-between;
}
.justify-center{
  justify-content: center;
}
.align-end{
  align-items: flex-end;
}
.align-center{
  align-items: center;
}
.br-3{
  border-radius: 3px;
}
.br-5{
  border-radius: 5px;
}
.ml-5{
  margin-left: 5px;
}
.ml-8{
  margin-left: 8px;
}
.ml-10{
  margin-left: 5px;
}
.ml-12{
  margin-left: 12px;
}
.ml-20{
  margin-left: 20px;
}
.mr-5{
  margin-right: 5px;
}
.mr-8{
  margin-right: 8px;
}
.mr-10{
  margin-right: 5px;
}
.mr-12{
  margin-right: 12px;
}
.mr-20{
  margin-right: 20px;
}
.mt-5{
  margin-top: 5px;
}
.mt-8{
  margin-top: 8px;
}
.mt-10{
  margin-top: 5px;
}
.mt-12{
  margin-top: 12px;
}
.mt-20{
  margin-top: 20px;
}
.mt-30{
  margin-top: 30px;
}
.mb-5{
  margin-bottom: 5px;
}
.mb-8{
  margin-bottom: 8px;
}
.mb-10{
  margin-bottom: 5px;
}
.mb-12{
  margin-bottom: 12px;
}
.mb-20{
  margin-bottom: 20px;
}
.mb-30{
  margin-bottom: 30px;
}

.pl-5{
  padding-left: 5px;
}
.pl-8{
  padding-left: 8px;
}
.pl-10{
  padding-left: 5px;
}
.pl-12{
  padding-left: 12px;
}
.pl-20{
  padding-left: 20px;
}
.pr-5{
  padding-right: 5px;
}
.pr-8{
  padding-right: 8px;
}
.pr-10{
  padding-right: 5px;
}
.pr-12{
  padding-right: 12px;
}
.pr-20{
  padding-right: 20px;
}
.pt-5{
  padding-top: 5px;
}
.pt-8{
  padding-top: 8px;
}
.pt-10{
  padding-top: 5px;
}
.pt-12{
  padding-top: 12px;
}
.pt-20{
  padding-top: 20px;
}
.pt-30{
  padding-top: 30px;
}
.pb-5{
  padding-bottom: 5px;
}
.pb-8{
  padding-bottom: 8px;
}
.pb-10{
  padding-bottom: 5px;
}
.pb-12{
  padding-bottom: 12px;
}
.pb-20{
  padding-bottom: 20px;
}
.pb-30{
  padding-bottom: 30px;
}

.ft-12{
  font-size: 12px;
}
.ft-14{
  font-size: 14px;
}
.ft-16{
  font-size: 16px;
}
.ft-18{
  font-size: 18px;
}
.ft-20{
  font-size: 20px;
}
.ft-22{
  font-size: 22px;
}
.ft-12{
  font-size: 12px;
}
.info-card{
  .br-5();
  box-shadow: 0px 4px 10px #dadada;
  .ant-card-head-title{
    padding: 10px 0;
  }
  .ant-card-body{
    padding: 12px 24px;
  }
}
.condition-card{
  .br-5();
  box-shadow: 0px 4px 10px #dadada;
  .ant-card-head-title{
    padding: 10px 0;
  }
  .ant-card-body{
    padding: 12px 24px;
  }
}
.result-card{
  .br-5();
  box-shadow: 0px 4px 10px #dadada;
  .ant-card-head-title{
    padding: 10px 0;
  }
  .ant-card-extra{
    padding: 0;
  }
  .ant-card-body{
    padding: 12px 24px;
  }
}
.tag{
  .br-3();
  .ft-12();
  height: 20px;
  line-height: 20px;
  padding: 0 10px;
  display: inline-block;
}
.primary-tag{
  color: #fff;
  background: fade(@primaryColor, 50%);
}
.primary-color{
  color: @primaryColor;
}
.pagination-content{
  padding: 10px 0;
}
.ant-tree-switcher{
  line-height: 30px;
}
.del-btn{
  color: @errorColor;
}
